package mystudy
// 接口继承接口
import "fmt"

type Ainter interface{
	a()
}
type Binter interface{
	b()
}
type Cinter interface{
	Ainter
	Binter
	c()	
}

type Dstruct struct{

}

func (s Dstruct) a(){
	fmt.Println("aaa")
}
func (s Dstruct) b(){
	fmt.Println("bbb")
}
func (s Dstruct) c(){
	fmt.Println("ccc")
}

func DemoMulInterInter(){
	var s Dstruct
	var c Cinter = s
	var c1 Cinter
	type Empty interface{}
	var e Empty = s
	c.c()
	fmt.Println(c1)
	fmt.Println(e)
}